﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <script src="~/js/jquery-1.11.3.min.js"></script>
    <link href="~/static/css/layui.css" rel="stylesheet" media="all" />
    <link href="~/static/css/global.css" rel="stylesheet" media="all" />
    @RenderSection("head", false)


    <script src="~/static/layui.js"></script>
    @using Beauty.Model
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header header header-demo">
            <div class="layui-main">
                <a class="logo" href="/">
                    <img src="~/images/logoblack.png" alt="layui">

                </a>


                @{
                    Beauty.Model.user users = Session[DataConfig.UserSessionName] as user;
                    <div class="nav-user">
                        <a class="avatar" href="/user/">
                            <img src="@users.IconUrl" alt="头像" />
                            <cite>@(string.IsNullOrEmpty(users.NickName) ? users.UName : users.NickName)</cite>
                        </a>
                        <div class="nav">
                            <a href="/UserCenter/Index"><i class="iconfont icon-shezhi"></i>设置</a>
                            <a href=""><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
                        </div>
                    </div>
                }




            </div>
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">

                <ul class="layui-nav layui-nav-tree site-demo-nav">

                    <li class="layui-nav-item" style="height: 5px; text-align: center">
                        <a title="纸飞机，为你护航">
                            <i class="layui-icon" style=" font-size 16px;"></i>
                        </a>
                    </li>



                    <li class="layui-nav-item layui-nav-title">
                        <a>个人中心</a>
                    </li>
                    <li class="layui-nav-item " id="li-index">
                        <a href="/UserCenter/Index#info">
                            <i class="layui-icon" style="top: 1px; font-size: 18px;">&#xe612;</i>
                            <cite>资料修改</cite>
                        </a>
                    </li>




                    <li class="layui-nav-item layui-nav-title">
                        <a>关注中心</a>
                    </li>
                    <li class="layui-nav-item" id="li-follow">
                        <a href="/UserCenter/Follow">
                            <i class="layui-icon" style="top: 3px;">&#xe600;</i><cite>我收藏的套图</cite>
                        </a>
                    </li>


                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;">默认展开</a>
                        <dl class="layui-nav-child">
                            <dd><a href="">选项1</a></dd>
                            <dd><a href="">选项2</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item" style="height: 30px; text-align: center"></li>
                    <span class="layui-nav-bar" style="top: 480px; height: 0px; opacity: 0;"></span>
                </ul>

            </div>
        </div>
        <div class="layui-body site-demo">
            <div class="layui-main">
                @RenderBody()
            </div>
        </div>

        <div class="site-tree-mobile layui-hide">
            <i class="layui-icon"></i>
        </div>
        <div class="site-mobile-shade"></div>




    </div>

</body>
</html>

<script>
    var element, layer;
    layui.use(['element', 'layer'], function () {
         element = layui.element()
         , layer = layui.layer;
         layer.config({
             anim: 5, //默认动画风格
             
         });

    });

</script>

<script>

    var selected_nav = '@ViewContext.RouteData.Values["action"]';

    $("#li-" + selected_nav.toLowerCase()).addClass("layui-this");



</script>

@RenderSection("footerJs", false)
